export default function (date) {
  let weekZhData = '天一二三四五六'

  function numfill (number) {
    if (number < 10) {
      return '0' + number
    }
    return number
  }
  return {
    weekZh: weekZhData[date.getDay()],
    year: date.getFullYear(),
    month: numfill(date.getMonth() + 1),
    day: numfill(date.getDate())
  }
}
